package com.daoxiang.service.impl;

import com.daoxiang.dao.ReceivingAddressMapper;
import com.daoxiang.pojo.ReceivingAddress;
import com.daoxiang.service.ReceivingAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ReceivingAddressServiceImpl implements ReceivingAddressService {

    @Autowired
    private ReceivingAddressMapper receivingAddressMapper;

    @Override
    public int insertReceivingAddress(ReceivingAddress receivingAddress) {
        return this.receivingAddressMapper.insert(receivingAddress);
    }

    @Override
    public int updateReceivingAddress(ReceivingAddress receivingAddress) {
        return this.receivingAddressMapper.updateByPrimaryKeySelective(receivingAddress);
    }
}
